#pragma once

#include "Control.h"


typedef struct OPTIONTAG
{
	DWORD dwData;
	wstring strText;
} Option;


class GUI_API CText :	public CControl
{
public:
	CText(){};
	CText(UINT nID);
	CText(wstring strCaption,UINT nID);
	CText(DWORD dwStyle, wstring strCaption,const CRect &rc, UINT nID);
	CText(DWORD dwStyle, wstring strCaption, int x, int y, int cx, int cy, UINT nID);
	virtual ~CText(void);
	virtual void Paint(CDC* pDC);

	void SetTextAlign(DWORD dwAlign)
	{
		m_dwTxtAlign = dwAlign;
	}

	//inline void SetBK(HBITMAP hBitmap)
	//{
	//	if(hBitmap)
	//	{
	//		m_bmpBK.Attach(hBitmap);
	//	}
	//}

private:

	DWORD    m_dwTxtAlign;

	//CBitmap   m_bmpBK;

protected:
	void InitColor();

};
